<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .healInfo {
      color: green;
    }
    .healInfo:has(.healTime) .healStatus {
      color: red;
    }
    .healInfo:has(.healAverage) .healStatus {
      color: red;
    }
  </style>
</head>
<body>
  <div class="healInfo">
    我是healInfo
    <div class="healStatus">
      我是healStatus
    </div>

    <div class="healTime">
      我是Time
    </div>

    <div class="healAverage">
      我是average
    </div>
  </div>
</body>
</html>